﻿



//






using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using yb.commerce.BLL;
using yb.commerce.Model;

public partial class help : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Help_load();
        }
    }
    private void Help_load()
    {
        NewsContentBusiness business = new NewsContentBusiness();
        int number = 3;
        string where = "category_id=12 and is_show=1 and is_delete=0";
        string fieldList = "Id,title,order_by,is_show";
        string orderField = "order_by";
        bool orderby = true;
        DataRecordTable table = business.GetList(fieldList, orderField, orderby, 1, number, where);
        rAboutUs.DataSource = table.Table;
        rAboutUs.DataBind();

        where = "category_id=8 and is_show=1 and is_delete=0";
        table = business.GetList(fieldList, orderField, orderby, 1, number, where);
        rNovice.DataSource = table.Table;
        rNovice.DataBind();

        where = "category_id=9 and is_show=1 and is_delete=0";
        table = business.GetList(fieldList, orderField, orderby, 1, number, where);
        rGuide.DataSource = table.Table;
        rGuide.DataBind();

        where = "category_id=10 and is_show=1 and is_delete=0";
        table = business.GetList(fieldList, orderField, orderby, 1, number, where);
        rPayment.DataSource = table.Table;
        rPayment.DataBind();

        where = "category_id=11 and is_show=1 and is_delete=0";
        table = business.GetList(fieldList, orderField, orderby, 1, number, where);
        rProvisions.DataSource = table.Table;
        rProvisions.DataBind();

    }
}
